package com.cy.mall.service.goods.impl;

import com.cy.mall.dao.mapper.goods.GoodsCategoryMapper;
import com.cy.mall.model.domain.goods.GoodsCategory;
import com.cy.mall.service.BaseService;
import com.cy.mall.service.goods.GoodsCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description 商品类别 service
 * @Author tanyilin
 * @Date 2019/7/4 15:01
 */
@Service
public class GoodsCategoryServiceImpl extends BaseService implements GoodsCategoryService {

    @Autowired
    private GoodsCategoryMapper goodsCategoryMapper;


    @Override
    public List<GoodsCategory> getAllEnableGoodsCategoryList() {

        List<GoodsCategory> list = goodsCategoryMapper.selectAllEnableGoodsCategoryList();

        return list;
    }
}
